package com.zzyq.pc.mongodb.model;

import java.io.Serializable;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

/**
 * mongodb数据库 映射对象
 * @author Administrator
 *
 */
@Entity(value = "pointTables", noClassnameStored = true)
public class MongodbPoint implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	/**
	 * 数据库主键
	 */
	@Id
	private String id;
	/**
	 * 聚合ID
	 */
	private String groupId;
	/**
	 * 方案ID
	 */
	private String ifmId;
	/**
	 * 统计转载数
	 */
	private Integer reprintNumb;
	/**
	 * 原创数据ID
	 */
	private String originalId;
	/**
	 * 数据类型
	 */
	private String articleType;
	/**
	 * 时间戳
	 */
	private long timestamp;
	/**
	 * 最早时间数据的ID
	 */
	private String earliestId;
	
	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getGroupId() {
		return groupId;
	}


	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}


	public String getIfmId() {
		return ifmId;
	}


	public void setIfmId(String ifmId) {
		this.ifmId = ifmId;
	}


	public Integer getReprintNumb() {
		return reprintNumb;
	}


	public void setReprintNumb(Integer reprintNumb) {
		this.reprintNumb = reprintNumb;
	}


	public String getOriginalId() {
		return originalId;
	}


	public void setOriginalId(String originalId) {
		this.originalId = originalId;
	}

	public String getArticleType() {
		return articleType;
	}

	public void setArticleType(String articleType) {
		this.articleType = articleType;
	}

	public long getTimestamp() {
		return timestamp;
	}


	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getEarliestId() {
		return earliestId;
	}


	public void setEarliestId(String earliestId) {
		this.earliestId = earliestId;
	}

	@Override
	public String toString() {
		return "MongodbPoint [id=" + id + ", groupId=" + groupId + ", ifmId="
				+ ifmId + ", reprintNumb=" + reprintNumb + ", originalId="
				+ originalId + ", articleType=" + articleType + ", timestamp="
				+ timestamp + ", earliestId=" + earliestId + "]";
	}

	

}
